<?php
// src/JobEntity/Order.php
namespace App\JobEntity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Class Order
 * @package App\JobEntity
 *
 * @ORM\Entity
 * @ORM\Table(
 *     name="app_order"
 * )
 * @ORM\Entity(repositoryClass="App\Model\ListModel1")
 */
class Order extends Entity
{
    /**
     * @ORM\Column(type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=50)
     */
    private $goods_name;

    /**
     * @ORM\Column(type="string", length=50)
     */
    private $username;

    /**
     * @ORM\Column(type="integer", length=11)
     */
    private $buy_num;

    /**
     * @ORM\Column(type="string", length=50)
     */
    private $start_time;

    /**
     * @ORM\Column(type="string", length=1)
     */
    private $is_del;

    /**
     * @ORM\Column(type="string", length=50)
     */
    private $order_id;

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getGoodsName()
    {
        return $this->goods_name;
    }

    /**
     * @return mixed
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * @return mixed
     */
    public function getBuyNum()
    {
        return $this->buy_num;
    }

    /**
     * @return mixed
     */
    public function getStartTime()
    {
        return $this->start_time;
    }

    /**
     * @return mixed
     */
    public function getIsDel()
    {
        return $this->is_del;
    }

    /**
     * @return mixed
     */
    public function getOrderId()
    {
        return $this->order_id;
    }

    /**
     * @param $id
     * @return Order
     */
    public function setId($id): self
    {
        $this->id = $id;

        return $this;
    }

    /**
     * @param $goods_name
     * @return Order
     */
    public function setGoodsName($goods_name): self
    {
        $this->goods_name = $goods_name;

        return $this;
    }

    /**
     * @param $username
     * @return Order
     */
    public function setUsername($username): self
    {
        $this->username = $username;

        return $this;
    }

    /**
     * @param $buy_num
     * @return Order
     */
    public function setBuyNum($buy_num): self
    {
        $this->buy_num = $buy_num;

        return $this;
    }

    /**
     * @param $start_time
     * @return Order
     */
    public function setStartTime($start_time): self
    {
        $this->start_time = $start_time;

        return $this;
    }

    /**
     * @param $order_id
     * @return Order
     */
    public function setOrderId($order_id): self
    {
        $this->order_id = $order_id;

        return $this;
    }

    /**
     * @param $is_del
     * @return Order
     */
    public function setIsDel($is_del): self
    {
        $this->is_del = $is_del;

        return $this;
    }
}